package com.wc.alorithm_blue_bridge._模拟.Q1444;

/**
 * @Author congge
 * @Date 2023/10/23 22:34
 * @description
 * 相乘
 * https://www.lanqiao.cn/problems/1444/learning/?page=3&first_category_id=1&sort=students_count&second_category_id=3
 */
public class Main {
    public static void main(String[] args) {
        long num = 2021;
        long rand = 1000000007;
        long ans = 0;
        for (int i = 1; i <=rand ; i++) {
            if (num*i%rand==999999999){
                ans = i;
            }
        }
        System.out.println(ans);
    }
}
